<?php
/*
 * Created on 2012-6-28
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 header("Content-Type:text/html;charset=utf-8");
 date_default_timezone_set("Asia/Chongqing");
include('nns_db_view_record_class.php');
$nns_template_name = 'test_'.rand();
$nns_asset_id = rand();
$nns_template_id = '10000'.rand(1,9);
$db = new nns_db_view_record_class();
$arr = array(
'nns_template_type' => '200000',
'nns_template_id' => $nns_template_id,
'nns_template_name' => $nns_template_name,
'nns_asset_id' => '',
'nns_service_id' => $nns_asset_id,
'nns_category_id' => '546567765gfdsdfsd',
'nns_content_id' => 'fsgdgfhghghg',
'nns_content_name' => 'gggggg',
'nns_user_id' => 'trytrytyt',
'nns_device_id' =>'uuuuuuu'
);
$r = $db->save($arr);
print_r($r);
echo 'save done';
